package cn.ym.ymcc.mapper;

import cn.ym.ymcc.domain.Employee;
import cn.ym.ymcc.query.BaseQuery;
import cn.ym.ymcc.query.EmployeeQuery;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 210513347@qq.com
 * @since 2023-05-04
 */
public interface EmployeeMapper extends BaseMapper<Employee> {
    /**
     * 分页：查询总数量
     * @param query
     * @return
     */
    Long queryCount(EmployeeQuery query);
    /**
     * 分页：查询当前页数据
     * @param query
     * @return
     */
    List<Employee> queryData(EmployeeQuery query);
}
